package day08;

import java.util.Scanner;

/**
 * @author tongchen
 * @create 2023-03-13 22:41
 */
public class Main1 {
    public static void main(String[] args) {
        //创建输入对象
        Scanner scanner=new Scanner(System.in);
        int x=scanner.nextInt();
        int y=scanner.nextInt();
        int max=Math.max(x, y);
        int min=Math.min(x, y);
        if(max%min==0){
            System.out.println(max);
            return;
        }
        int maxMul=1;
        for(int i=2;i<=min;++i){
            if(x%i==0&&y%i==0){
                maxMul=i;
            }
        }
        //不断对maxMul进行成绩
        if(maxMul==1){
            System.out.println(x*y);
            return;
        }
        int temp=maxMul;
        while(maxMul%x!=0||maxMul%y!=0){
            maxMul+=temp;
        }
        System.out.println(maxMul);

    }
}
